<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* p[id]{ */
        /* p[id][title]{ */
        /* p[id="one"]{ */
        /* p[id=one]{ */
        /* p[title^=t2]{ */
        /* p[title$="2"]{ */
        /* p[title*="2"]{ */
        p:not([title*="2"]){
            background: red;
        }
    </style>
</head>
<body>
    <p title="t1">p1</p>
    <p title="t2">p2</p>
    <p title="t3">p3</p>
    <p title="t22">p4</p>
    <p title="t24">p5</p>
    <p id="one">p6</p>
    <p id="two" title="t28">p7</p>
    <p id="three">p8</p>
    <p>p9</p>
    <p>p10</p>
</body>
</html>